package com.business.business.support.model;

import org.springframework.web.servlet.ModelAndView;

/**
 * ModelAndView包装类
 */
public class ViewEntity extends ModelAndView {

	public ViewEntity(String path) {
		super(path);
	}
	public ViewEntity() {
	}
	public static ViewEntity create(String path) {
		ViewEntity modelAndView = new ViewEntity(path);
		return modelAndView;
	}

	public ViewEntity setAttr(String key, Object val) {
		this.addObject(key, val);
		return this;
	}

}
